package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.CategoryDao;
import com.ericom.model.Category;
import com.ericom.service.CategoryManager;

@Service("categoryManager")
public class CategoryManagerImpl extends GenericManagerImpl<Category, Long>
		implements CategoryManager {

	private CategoryDao categoryDao;

	@Autowired
	public CategoryManagerImpl(CategoryDao categoryDao) {
		super(categoryDao);
		this.categoryDao = categoryDao;
	}


	public List<Category> findTopCategory() {

		return this.categoryDao.findTopCategory();
	}

}
